<?php

use yii\db\Migration;

/**
 * Class m180115_034353_alter_project_pre_evaluation_lawsuit
 */
class m180115_034353_alter_project_pre_evaluation_lawsuit extends Migration
{
    /**
     * @inheritdoc
     */
    public function safeUp()
    {
        $this->addColumn('project_pre_evaluation_lawsuit', 'lock_user', $this->smallInteger()->defaultValue(1)->comment('上锁用户'));
        $this->addColumn('project_pre_evaluation_lawsuit', 'lock_timestamp', $this->smallInteger()->defaultValue(1)->comment('上锁时间'));

    }

    /**
     * @inheritdoc
     */
    public function safeDown()
    {
        echo "m180115_034353_alter_project_pre_evaluation_lawsuit cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m180115_034353_alter_project_pre_evaluation_lawsuit cannot be reverted.\n";

        return false;
    }
    */
}
